--TEST--
Check for jsonschema string validate
--SKIPIF--

<?php if (!extension_loaded("jsonschema"))
    print "skip"; ?>
--FILE--
<?php
echo 'string', PHP_EOL;
$value = 'test s p a c e s string';
$jsonSchema = new JsonSchema(json_encode($value));

echo assert($jsonSchema->validate('{"type":"string","format":"regex","pattern":"\/^[a-z.]+$\/i","minLength":0,"maxLength":2147483647}') == false), PHP_EOL;
echo count($jsonSchema->getErrors()), PHP_EOL;
?>
--EXPECT--
1
1